Ext.onReady(function() {
	var downForm = Ext.create('Ext.form.FormPanel',{
		id:'downForm',
		title:'down-form',
		renderTo:Ext.getBody(),
		items:[],
		buttons:[{
			text:'pressure excel download',
			handler:function() {
				window.location.href = 'fileUpDownAction.do?method=download&path='+
				'D:\\HealthManager2.0Folder\\downloadFolder\\pressure.xlsx'; 
//				Ext.Ajax.request({
//					method:'POST',
//					url:'fileUpDownAction.do?method=download',
//					params:{
//						path:'D:\\downloadFolder\\pressure.xlsx'
//					},
//					success:function() {
//						window.location.href = 'fileUpDownAction.do?method=download&path='+
//						'D:\\downloadFolder\\pressure.xlsx'; 
//					},
//					failure:function() {
//						Ext.Msg.alert('','download failed!');
//					}
//				})//end of request
			}
		},{
			text:'sugar excel download',
			handler:function() {
				window.location.href = 'fileUpDownAction.do?method=download&path='+
				'D:\\HealthManager2.0Folder\\downloadFolder\\sugar.xlsx'; 
			}//end of function handler
		}]
	
	});


});//end of Ext.onReady